package com.jams.goodox.activity.home;

import com.jams.goodox.entity.OnlineShoppingCommentBean;
import com.jams.goodox.net.BaseEntity;

import java.util.List;

/**
 * Created by Administrator on 2017/10/23.
 */

public class GoodsBean extends BaseEntity{
    Data data;

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data{
       Comment comment;
        Info info;

        public Comment getComment() {
            return comment;
        }

        public void setComment(Comment comment) {
            this.comment = comment;
        }

        public Info getInfo() {
            return info;
        }

        public void setInfo(Info info) {
            this.info = info;
        }
    }

    public static class Option{
        List<Child> child;
        private String method;
        private String title;

        public List<Child> getChild() {
            return child;
        }

        public void setChild(List<Child> child) {
            this.child = child;
        }

        public String getMethod() {
            return method;
        }

        public void setMethod(String method) {
            this.method = method;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }
    }

    public static class Child{
        private String name;
        private String price;
        private String num;
        private String title;
        private String method;
        private boolean isChoose;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getMethod() {
            return method;
        }

        public void setMethod(String method) {
            this.method = method;
        }

        public boolean isChoose() {
            return isChoose;
        }

        public void setChoose(boolean choose) {
            isChoose = choose;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getNum() {
            return num;
        }

        public void setNum(String num) {
            this.num = num;
        }
    }

    public static class Mutiple{
        String type;//0为图片 1为视频
        String src;//链接地址

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getSrc() {
            return src;
        }

        public void setSrc(String src) {
            this.src = src;
        }
    }
    public static class Info{
       String id;//产品ID
        List<Mutiple> mutiple;

        String price;//价格
        String inventory;//库存
        String sales;//销售额
        String collect; //0未收藏 1已收藏
        String method;//分类标签
        String title;//分类名称
//        String child; 数组 // 分类选项
//        name： //选项名称
//        price： //选项价格
//        num：	//数量

        List<Option> option;

        public List<Option> getOption() {
            return option;
        }

        public void setOption(List<Option> option) {
            this.option = option;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public List<Mutiple> getMultiple() {
            return mutiple;
        }

        public void setMultiple(List<Mutiple> multiple) {
            this.mutiple = multiple;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getInventory() {
            return inventory;
        }

        public void setInventory(String inventory) {
            this.inventory = inventory;
        }

        public String getSales() {
            return sales;
        }

        public void setSales(String sales) {
            this.sales = sales;
        }

        public String getCollect() {
            return collect;
        }

        public void setCollect(String collect) {
            this.collect = collect;
        }

        public String getMethod() {
            return method;
        }

        public void setMethod(String method) {
            this.method = method;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public boolean isCollect(){
            return "1".equals(collect);
        }
    }

    public static class Comment{
        String type1;
        String type2;
        String type3;
        String type4;
        String type5;
        String ratio;
        List<OnlineShoppingCommentBean> item;

        public String getType1() {
            return type1;
        }

        public void setType1(String type1) {
            this.type1 = type1;
        }

        public String getType2() {
            return type2;
        }

        public void setType2(String type2) {
            this.type2 = type2;
        }

        public String getType3() {
            return type3;
        }

        public void setType3(String type3) {
            this.type3 = type3;
        }

        public String getType4() {
            return type4;
        }

        public void setType4(String type4) {
            this.type4 = type4;
        }

        public String getType5() {
            return type5;
        }

        public void setType5(String type5) {
            this.type5 = type5;
        }

        public String getRadio() {
            return ratio;
        }

        public void setRadio(String radio) {
            this.ratio = radio;
        }

        public List<OnlineShoppingCommentBean> getItem() {
            return item;
        }

        public void setItem(List<OnlineShoppingCommentBean> item) {
            this.item = item;
        }
    }

    public static class Item{
        String id;
        String memberid;
        String nickname;
        String icon;
        String grade;
        String content;
        String image;
        String time;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getMemberid() {
            return memberid;
        }

        public void setMemberid(String memberid) {
            this.memberid = memberid;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public String getGrade() {
            return grade;
        }

        public void setGrade(String grade) {
            this.grade = grade;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }
    }
}
